<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::get('gu','GuController@index');
Route::get('name',function(){
	return 'mynameis';
});
Route::group(['namespace'=>'Home','prefix'=>'/home'],function(){
	Route::get('/shouye','IndexController@index');
	Route::get('/register',function(){
		return view('Home/login/register');
	});
	Route::post('/adduser','UserController@register');
	Route::get('/login',function(){
		return view('Home/login/login');
	});
	Route::post('/dologin','LoginController@login');
	Route::get('/text/{tmp}','LoginController@text');
	Route::get('/ajaxGetmore','IndexController@getMore');
	Route::get('/logout','LoginController@logout');
	Route::get('/goodslist/{cid}','GoodsController@goodsList');
//	Route::get('');
});
Route::get('text','Home\LoginController@my');
Route::get('textname','Home\LoginController@name');
Route::any('upload','Home\LoginController@upload');
